//package com.zzx.service.impl;
//
//import org.apache.ibatis.annotations.Param;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import com.zzx.mapper.UserMapper;
//import com.zzx.pojo.User;
//import com.zzx.service.IMyRedisService;
//import com.zzx.service.IUserService;
//
//@Service
//public class UserServiceImpl implements IUserService{
//
//	@Autowired
//	private UserMapper userMapper;
//	
//	@Autowired
//	private IMyRedisService myRedisService;
//	
//	
//	public void saveUser(User user) {
//		System.out.println("****保存数据******");
//		userMapper.saveUser(user);
//		System.out.println("**redis:  "+myRedisService.getString("tableName"));
//		System.out.println("****保存数据**成功****");
//	}
//
//	public void createTable(String tableName) {
//		System.out.println("****创建表******");
//		//DynamicDataSourceHolder.putDataSource("2");
//		//myRedisService.setKeyString("tableName", tableName);
//		userMapper.createTable(tableName);
//		System.out.println("**redis:  "+myRedisService.getString("tableName"));
//		System.out.println("****创建 成功******");
//	}
//	
//	public boolean ifExistsTable(@Param("tableName")String tableName) {
//		System.out.println("***判断表是否存在******");	
//		int num = userMapper.ifExistsTable(tableName);
//		if(num>0) {
//			return true;
//		}
//		return false;
//	}
//
//}
